package com.tongtong.stscommon.enumration;

/**
 * 消息 enum
 */
public interface Message {

	String OK = "成功";

	// 鉴权
	String TokenIllegal = "token格式错误或已过期";
	String Unauthorized = "用户未登录";
	String AuthorizeFailed = "身份认证失败";
	String TokenExpired = "身份过期，请重新登录";
	String InsufficientAuthority = "权限不足";
	String PasswordError = "密码错误";

	// 注册
	String UsernameUsed = "用户名已被使用";
	String PhoneNumberRegistered = "手机号已被注册";
	String PhoneNumberInvalid = "手机号格式错误";
	String PhoneNumberIsNull = "手机号不能为空";

	// 邮箱
	String EmailInvalid = "邮箱格式错误";

	// 验证码
	String CaptchaUnapplied = "请先申请验证码";
	String CaptchaError = "验证码错误";

	// 七牛云
	String UploadFileFailed = "文件上传失败";
	String DeleteFileFailed = "文件删除失败";
	String FileIsNull = "文件为空";
	String FileNameIsNull = "文件名为空";
	String FileNameInvalid = "文件名不合法";
	String FileSizeExceeded = "文件大小超限";
	String FileTypeInvalid = "文件类型不合规定";

	// 资源操作
	String GetResourcesError = "资源获取失败";
	String UpdateResourcesError = "资源修改失败";
	String AddResourcesError = "资源增加失败";
	String DeleteResourcesError = "资源删除失败";
	String AccessResourcesError = "无法访问资源";

	// 对象
	String ObjectIsNull = "传入对象为空";
	String ObjectCanNotFound = "无法查找到指定对象";

	// 订单
	String QuantityExceeded = "数量超过当前可预定数量";
	String ItemOrderedOrSoldOut = "商品已订满或已售罄";
	String OrderStateError = "订单状态异常";
	String OrderOwnItem = "不能预定自己发布的商品";

	String AuditedStatusError = "审核状态异常";
	String AuditedResultError = "审核结果异常";

}
